package com.lu.pojo.oop.classes.constructor;

public class Test {
    public static void main(String[] args) {

        Person jack = new Person("Jack", 18);
        System.out.println(jack.getName());
        System.out.println(jack.getAge());
        System.out.println("-------------------------");
        Person bob = new Person("Bob", 20, "XingHua University");
        System.out.println(bob.getName());
        System.out.println(bob.getAge());
        System.out.println(bob.getSchool());
        System.out.println("-------------------------");
        Person alice = new Person("Alice", 21,"XingHua University", "ComputerScience");
        System.out.println(alice.getName());
        System.out.println(alice.getAge());
        System.out.println(alice.getSchool());
        System.out.println(alice.getMajor());

    }
}
